#ifndef __GPIO_H__
#define __GPIO_H__

#include "gd32f30x_gpio.h"

#define RUN_LED_PORT GPIOB
#define RUN_LED_PIN  GPIO_PIN_8

void GpioInit(void);

#define RUN_LED(i) \
    (i == 1) ? gpio_bit_set(RUN_LED_PORT, RUN_LED_PIN) : gpio_bit_reset(RUN_LED_PORT, RUN_LED_PIN)

#endif
